/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.tattoo.workflow.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "保存采购明细请求DTO")
public class SaveProcurementItemReq {
    /**
     * 采购明细id
     */
    @ApiModelProperty(value = "采购明细id")
    private Long id;

    /**
     * 产品编号
     * 这个产品可以使用数据中心lookup配置
     */
    @NotBlank(message = "code is required")
    @ApiModelProperty(value = "产品编号")
    private String code;

    /**
     * 产品编号
     * 这个产品可以使用数据中心lookup配置
     */
    @NotBlank(message = "name is required")
    @ApiModelProperty(value = "产品名称")
    private String name;

    /**
     * 采购数量
     */
    @NotNull(message = "count is required")
    @ApiModelProperty(value = "采购数量")
    private Integer count;

    /**
     * 申请单id
     */
    @ApiModelProperty(value = "申请单id")
    private Long procurementOrderId;
}
